import Empty from '@/views/empty.vue';
import {RouteConfig} from 'vue-router';
// oauth modules start
import DING_TALK from './dingTalk';
import WORK_WEIXIN from './workWeixin';
// oauth modules end

const children = [] as RouteConfig[];
children.push(...DING_TALK, ...WORK_WEIXIN);

const OAUTH_ROUTER = {
  path: '/ControlPanel/Oauth',
  name: 'Oauth',
  component: Empty,
  meta: {
    hidden: true
  },
  children
} as RouteConfig;

export default OAUTH_ROUTER;
